<?php


namespace app\common\service;


/**
 * @purpose: 接待提成
 * Class MaleUser
 */
class ReceiverService implements ProjectService
{
    /**
     * 接待计算提成
     * @param $order_type
     * @param $is_add
     * @param $project
     * @return mixed
     */
    public function showCommission($order_type,$is_add,$project)
    {
        //接待排钟提成
        if ($order_type == '1' || $order_type == '4') {
            $commission = $project['receiver_queue_rate'];
            return $commission;
        }

        //接待点钟提成
        if ($order_type== '2') {
            $commission = $project['receiver_dot_rate'];
            return $commission;
        }
        //接待call钟提成
        if ($order_type == '3') {
            $commission = $project['receiver_call_rate'];
            return $commission;
        }
        //接待加钟提成
        if ($order_type == '5') {
            $commission = $project['receiver_add_rate'];
            return $commission;
        }
    }

}